<?xml version="1.0" encoding="utf-8"?>
<Content type="xform" name="EditContent">
	<model>
		<instance>
			<provider name="PremiumCredit" validGroups="all" validCurrencies="GBP">
				<description value="Pay Monthly (Premium Credit)"/>
				<currency value="GBP"/>
				<UserName value="PclDemo"/>
				<Password value="PclDemo"/>
				<SchemeBranch value="Demo"/>
				<SchemeBrokerNumber value="0001"/>
				<SchemeCode value="AA001"/>
				<OpperationMode value="test"/>
				<ChargePercentage value="5"/>
				<OverrideRate value="false" />
				<NumInstalments value="10"/>
			</provider>
		</instance>
		<submission id="EditContent" action="" method="post" event="return form_check(this)"/>
		<bind nodeset="provider">
			<bind id="description" nodeset="description/@value" required="true()" type="string"/>
			<bind id="UserName" nodeset="UserName/@value" required="true()" type="string"/>
			<bind id="Password" nodeset="Password/@value" required="true()" type="string"/>
			<bind id="currency" nodeset="currency/@value" required="true()" type="string"/>
			<bind id="SchemeBranch" nodeset="SchemeBranch/@value" required="true()" type="string"/>
			<bind id="SchemeBrokerNumber" nodeset="SchemeBrokerNumber/@value" required="true()" type="string"/>
			<bind id="SchemeCode" nodeset="SchemeCode/@value" required="true()" type="string"/>
			<bind id="OpperationMode" nodeset="OpperationMode/@value" required="true()" type="string"/>
			<bind id="PPICode" nodeset="PPICode/@value" required="false()" type="string"/>
			<bind id="NumInstalments" nodeset="NumInstalments/@value" required="true()" type="number"/>
			<bind id="ChargePercentage" nodeset="ChargePercentage/@value" required="true()" type="number"/>
			<bind id="OverrideRate" nodeset="OverrideRate/@value" required="true()" type="string"/>
		</bind>
	</model>
	<group ref="EditContent">
		<label>Premium Credit Settings</label>
		<input bind="description" class="long">
			<label>Description</label>
		</input>
		<input bind="UserName">
			<label>Username</label>
		</input>
		<input bind="Password">
			<label>Password</label>
		</input>
		<input bind="currency">
			<label>Default Currency</label>
		</input>
		<input bind="SchemeBranch">
			<label>Scheme Branch</label>
		</input>
		<input bind="SchemeBrokerNumber">
			<label>Scheme Broker Number</label>
		</input>
		<input bind="SchemeCode">
			<label>Scheme Code</label>
		</input>
		<select1 bind="OpperationMode" appearance="full" class="required">
			<label>Opperation Mode</label>
			<item>
				<label>Live</label>
				<value>live</value>
			</item>
			<item>
				<label>Test</label>
				<value>test</value>
			</item>
		</select1>
		<input bind="PPICode" class="textbox">
			<label>PPI Code</label>
		</input>
		<input bind="NumInstalments" class="textbox">
			<label>Number of Instalments</label>
		</input>
		<input bind="ChargePercentage" class="textbox">
			<label>Charge Percentage</label>
			<hint>
				The required charge percentage. Populate this field (and set OverrideRate to true) if you would like to override the schemes' default charge percentage to subsidise the customer or make extra earnings.
				<br/>
				For example: If a scheme's default rate is 6% and you wish to make an extra 2%, you would set the RequiredRate to 8%.
			</hint>
		</input>
		<select1 bind="OverrideRate" appearance="full" class="required">
			<label>Override Rate</label>
			<item>
				<label>Yes</label>
				<value>true</value>
			</item>
			<item>
				<label>No</label>
				<value>false</value>
			</item>
			<hint>If you wish to override the rate and have provided a value in RequiredRate, set this field to true, otherwise set it to false.</hint>
		</select1>
		<submit submission="" ref="ewSubmit" class="principle">
			<label>Save Settings</label>
		</submit>
	</group>
</Content>
